package domain.impl;

import javax.persistence.*;

/**
 * Author: nml
 * 08/02/2009 - 16:04:48
 */
@SuppressWarnings("serial")
@Entity
public class FacturaDetalle extends AbstractBusinessObject {

    @Id
    private int id;
    private int nroFacturaDetalle;

    @ManyToOne(cascade = CascadeType.ALL)
    @JoinColumn(name = "facturaId")
    private Factura factura;

    @ManyToOne(cascade = CascadeType.ALL)
    @JoinColumn(name = "materialId")
    private Material material;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNroFacturaDetalle() {
        return nroFacturaDetalle;
    }

    public void setNroFacturaDetalle(int nroFacturaDetalle) {
        this.nroFacturaDetalle = nroFacturaDetalle;
    }

    public Factura getFactura() {
        return factura;
    }

    public void setFactura(Factura factura) {
        this.factura = factura;
    }

    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }


}
